home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / trueSpace 7.6 / tS761B8Std.exe / {app} / Scripts / MaterialEditor / Bricks / Texturing / tex2Dbias.HLSL.Brick.xml < prev    next >
Extensible Markup Language  |  2008-06-10  |  1KB  |  17 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <ME_BRICK GUID="{E7A6F46D-D8F3-4247-B8B8-2CE1449DECF8}" Name="RtTex2DBias" GUIName="Tex2D_Bias" Description="Sample the 2D texture at given texture coordinates with additional mipmap bias [tex2dbias]">
  3.     <ME_BRICK_INPUTPARAM GUID="{3166DA76-DDD5-4DFE-A3D2-C57A1D74204A}" Name="Sampler2D" Type="RtSampler2D"/>
  4.     <ME_BRICK_INPUTPARAM GUID="{DC0AF7E5-B86A-416D-8B3F-C770645881A3}" Name="vTexCoord3" Type="RtFloat3"/>
  5.     <ME_BRICK_INPUTPARAM GUID="{5B99F26E-EB46-45FE-B107-C03A565CB13A}" Name="sBias" Type="RtFloat"/>
  6.     <ME_BRICK_OUTPUTPARAM GUID="{90BA0B1A-5EAE-4F3D-8DAC-7E656CE1B954}" Name="vTextureColor4" Type="RtFloat4"/>
  7.     <ME_BRICK_CODE><![CDATA[
  8.         void RtTex2DBias(in RtSampler2D Sampler2D, in RtFloat3 vTexCoord3, in RtFloat sBias, out RtFloat4 vTextureColor4)
  9.         {
  10.             RtFloat4 tmp;
  11.             tmp.xyz = vTexCoord3.xyz;
  12.             tmp.w = sBias;
  13.             vTextureColor4 = rtx_Tex2DBias(Sampler2D, tmp);
  14.         }
  15.     ]]></ME_BRICK_CODE>
  16. </ME_BRICK>
  17.